package com.sz.rexiang.Activity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

import com.sz.rexiang.R;
import com.sz.rexiang.Utils.Const;
import com.sz.rexiang.Utils.TimeCountUtil;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

@ContentView(R.layout.activity_login)
public class ActivityLogin extends BaseActivity {

	@ViewInject(R.id.register_btn_phontnum)
	private Button btnGetCheck;
	@ViewInject(R.id.register_edit_phontnum)
	private EditText edtPhone;
	@ViewInject(R.id.register_edit_checknum)
	private EditText edtCheckNum;
	@ViewInject(R.id.register_edit_invitenum)
	private EditText edtInviteNum;
	private TimeCountUtil countUtil;

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);

		setTitle(R.string.register, true);

		countUtil = new TimeCountUtil(this, Const.TIMEREGISTER, 1000, btnGetCheck);

	}

	@Event(value = { R.id.register_btn_phontnum }, type = View.OnClickListener.class)
	private void onClick(View view) {
		// 必须为private
		switch (view.getId()) {
		case R.id.register_btn_phontnum:
			countUtil.start();
			break;

		}
	}

}
